Heightfield Primitive
- Heightfield lets you specify a surface as a primitive (so
texture mapping is easy!)
- Input is represented as a square (data < -1000 are ignored)
- File format is compact, but not portable.
- First word is 32-bit integer size of heightfield (
)
- Following size2 words are 32-bit floats (very
non-portable)
- Data fill rows first (i.e. y-coord is fixed)
- Data mapped into unit square on X and Y axes, but you can transform as
you like